package com.iversonx.bridge.example_1.v3.msg.special.impl;

import com.iversonx.bridge.example_1.v3.msg.special.SpecialUrgencyMessageService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 *
 **/
public class MobileSpecialUrgencyMessageService implements SpecialUrgencyMessageService {
    private static final Logger LOGGER = LoggerFactory.getLogger(
            MobileSpecialUrgencyMessageService.class);
    
    @Override
    public void hurry() {
        LOGGER.info("催促");
    }
    
    @Override
    public boolean support(String type) {
        return "special-urgency-mobile".equalsIgnoreCase(type);
    }
    
    @Override
    public void send(String message, String toUser) {
        LOGGER.info("[特急]发送消息[{}]至{}的手机", message, toUser);
    }
}
